<template>
  <div class="one">
    <div class="one-item">
      <div class="left" :style="{ height: height + 'px' }"></div>
      <div class="middle" :style="{ height: height + 'px' }">
        <div class="title">街镇总数</div>
        <div class="num">
          <span class="big">{{ topCount.streetCount || 0 }}</span>
          <span class="small">个</span>
        </div>
      </div>
      <div class="right" :style="{ height: height + 'px' }"></div>
    </div>
    <div class="one-item ml15">
      <div class="left" :style="{ height: height + 'px' }"></div>
      <div class="middle" :style="{ height: height + 'px' }">
        <div class="title">视频设备数</div>
        <div class="num">
          <span class="big">{{ topCount.deviceCount || 0 }}</span>
          <span class="small">台</span>
        </div>
      </div>
      <div class="right" :style="{ height: height + 'px' }"></div>
    </div>
  </div>
</template>

<script>
export default {
  name: "one",
  props: {
    topCount: {
      type: Object
    },
    height: {
      type: Number
    }
  },

}
</script>

<style scoped lang="less">
.one {
  display: flex;

  .one-item {
    display: flex;
    align-items: center;
    position: relative;
    width: 240px;
    // margin-left: 15px;

    .left,
    .right {
      width: 52px;
      // height: 93px;
      position: absolute;
      top: 0;
      background-repeat: no-repeat;
      background-size: cover;
    }

    .left {
      left: 0;
      background: url("../../../assets/images/onel.png") center center no-repeat;
    }

    .right {
      right: 3px;
      background: url("../../../assets/images/oner.png") center center no-repeat;
    }

    .middle {
      // height: 93px;
      border-top: 1px solid #202cd3;
      border-bottom: 1px solid #202cd3;
      width: 100%;
      margin-left: 52px;
      margin-right: 52px;
      position: relative;

      .title {
        font-size: 18px;
        font-weight: 400;
        color: #00caff;
        position: absolute;
        left: -30px;
        top: 10px;
        z-index: 1;
      }

      .num {
        // font-family: DS-Digital;
        font-family: 'electronicFont';
        font-weight: normal;
        color: #00faa8;
        position: absolute;
        right: -35px;
        bottom: 16px;
        z-index: 1;
        display: flex;
        align-items: end;

        .big {
          font-size: 28px;
        }

        .small {
          font-size: 16px;
        }
      }
    }
  }
}

@media screen and (max-width: 1026px) {
  .one {
    .one-item {
      .middle {
        .title {
          font-size: 15px;
          left: -40px;
        }

        .num {
          .big {
            font-size: 26px;
          }

          .small {
            font-size: 15px;
          }
        }
      }
    }
  }
}
</style>